package work.mediway.mdm.biz.dto.dict;

import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/1/21
 */
@Data
@ApiModel
public class DictStatisticsDTO {

    @ApiModelProperty(value = "当前日期(默认为当天)")
    @Pattern(regexp = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", message = "日期格式不正确,正确为yyyy-MM-dd")
    private String currDate;

    @ApiModelProperty(value = "开始日期(曲线显示使用)")
    @Pattern(regexp = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", message = "日期格式不正确,正确为yyyy-MM-dd")
    private String startDate;

    @ApiModelProperty(value = "结束时间(曲线显示使用)")
    @Pattern(regexp = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", message = "日期格式不正确,正确为yyyy-MM-dd")
    private String endDate;

    @ApiModelProperty(value = "字典表名称(如果不为空查询单个表的增量)")
    private String tableName;
}
